package com.leyou.system.mapper;


import com.leyou.common.mapper.BaseMapper;
import com.leyou.system.domain.User;
import org.apache.ibatis.annotations.Param;

import java.util.ArrayList;
import java.util.List;

public interface UserMapper extends BaseMapper<User> {
        List<Integer> selectRidAndUid(String id);

        //删除中间表
        void deleteUidAndRid(Integer id);

        //向中间表添加
        int addUidAndRid(@Param("id") Integer id, @Param("roleIds") ArrayList<Integer> roleIds);
}